﻿<%@ Page Language="C#" Title="LoginView" Inherits="MvcMembership.Components.FormsAuthenticationComponent.Views.LoginStatus" %>
<%@ Import Namespace="MvcMembership.Controllers" %>

<% if (ViewData.Model.IsLoggedIn) { %>
    Welcome, <%=ViewData.Model.UserName%>! - <%=Html.ActionLink<FormsAuthenticationController>(c => c.Logout(), "Logout") %>
<% } else { %>
    Not authenticated. - <%=Html.ActionLink<FormsAuthenticationController>(c => c.Login(), "Login") %>
<% } %>